package Client;

import Client.Component.GameFrame;
import Client.Component.LoginFrame;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

import static java.lang.Thread.sleep;

public class App {
    public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException {
        //网络连接

        LoginFrame loginFrame = new LoginFrame();
        while(loginFrame.gameFrame == null){
            sleep(1000);
        }
        while(true)
            loginFrame.gameFrame.startGame();

//        GameFrame f = new GameFrame();


    }
}
